package Java练习.字符串练习;

public class 手机号截取 {
    public static void main(String[] args) {
        String PhoneNumber = "13134567656";
        //截取前三位
        String start=PhoneNumber.substring(0,3);
        //截取后4位
        String end=PhoneNumber.substring(7);
        //拼接:
        String str_number=start+"****"+end;
        System.out.println(str_number);
    }
}
